package com.ccnf.model.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.ccnf.model.entity.MessagePoint;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author developer
 * @since 2018-06-14
 */
public interface MessagePointMapper extends BaseMapper<MessagePoint> {

    /**
     * 查询指定用户ID的消息节点列表，分页查询
     * @param userId 用户ID
     * @param page 分页参数
     */
    List<MessagePoint> selectMessagePointByUserId(@Param("expoId") Long expoId,
                                                  @Param("userId") Long userId, Pagination page);
}